<?php

if($act=="editvideo")
{
    $sql_select ="select * from tblsettour_video where iId='$id'";
    $rs         =$dbsql->query($sql_select);
    if($dbsql->num_rows($rs)==0)
    {
        page_transfer("Video id=$id not exists");
    }
    $video   = $dbsql->fetch_array($rs);
}else
{
    $video                  = array();
    $video['iParentId']     = $id;
    $video['iStatus']       = 1;
    $id                     = 0;
}
?>